const http = "https://mcodes.shengdunyun.net/web/index.php?_mall_id=31&r="
exports.request = (data) => {
	// https://mcodes.shengdunyun.net/web/index.php?_mall_id=31&r=api/user/config
	// console.log(123);
	return new Promise((resolve, reajuct) => {
		uni.request({
			url: http + data.url,
			method: data.method || "GET",
			header: {
				'content-type': 'application/x-www-form-urlencoded',
				'accept': '*/*'
			},
			data: data.data,
			success: (res) => {
				resolve(res)
			}
		})
	})

}